package com.zhh.api.service;

import com.zhh.api.model.IncomeRecord;
import com.zhh.api.model.User;
import com.zhh.api.pojo.UserAccountInfo;

import java.util.List;

public interface UserService {

    //获取用户和收益信息
    List<IncomeRecord> queryByUid(Integer uid, Integer pageNo, Integer pageSize);

    //判断手机号是否存在
    User queryByPhone(String phone);

    //用户注册
    int userRegister(String phone, String pword);

    //用户登录
    User userLogin(String phone, String pword);

    //更新实名认证信息
    boolean modifyRealname(String phone, String name, String idCard);

    //获取用户和资金信息
    UserAccountInfo queryUserAllInfo(Integer uid);

    //查询用户
    User queryById(Integer uid);
}
